package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "WMS_InventoryMaterial", description = "盘点物料")
@TableName(value = "WMS_InventoryMaterial")
public class WmsInventoryMaterial extends FBaseEntity implements Serializable {


    
    @NotNull(message="[盘点主表ID]不能为空")
    @ApiModelProperty("盘点主表ID")
    @TableField(value = "mainId")
    private Long mainId;
    
    @NotNull(message="[盘点子表ID]不能为空")
    @ApiModelProperty("盘点子表ID")
    @TableField(value = "hSubID")
    private Long hSubID;

    @ApiModelProperty("库位ID")
    @TableField(value = "areaId")
    private Long areaId;

    @NotNull(message="[盘点物料ID]不能为空")
    @ApiModelProperty("盘点物料ID")
    @TableField(value = "materialId")
    private Long materialId;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("备注")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "remark")
    private String remark;

}

